{% load i18n %}
<table cellpadding="0" cellspacing="0" style="color:black; font-weight:400; font-size:12px;line-height:20px" width="100%">
    <tbody>
        <tr>
            <td>
                <table width="100%">
                    <tbody>
                        <tr>
                            <td width="25%" align="left" style="padding: 0">
                                <img src="{{ logo_url }}" style="width: auto;" height="32" alt="Logo"/></a>
                            </td>
                            <td width="75%" align="right" style="padding: 0">
                                <table>
                                    <tbody>
                                        <tr>
                                            {% for social_name, social_data in social_media.items %}
                                                <td style="padding: 0">
                                                    <a href="{{social_data.url}}">
                                                        <img src="{{social_data.icon}}" style="max-height: 24px; max-width: 24px; margin-left: 0.6rem" alt="{{social_name}}" />
                                                    </a>
                                                </td>
                                            {% endfor %}
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <blockquote style="margin: 1rem 0 0;">
                    {% if footer_email_reason %}
                        {{ footer_email_reason }}
                    {% else %}
                        {% trans "You are receiving this email because you have subscribed to email digest" as tmsg %}{{ tmsg | force_escape }}
                    {% endif %}
                </blockquote>
                <blockquote style="margin: 0.625rem 0">
                    <a href="{{notification_settings_url}}" rel="noopener noreferrer" target="_blank" style="color: black">
                        {% trans "Notification Settings" as tmsg %}{{ tmsg | force_escape }}
                    </a>
                    <a href="{{unsubscribe_url}}" rel="noopener noreferrer" target="_blank" style="color: black; margin-left: 1rem">
                        {% trans "Unsubscribe from email digest for learning activity" as tmsg %}{{ tmsg | force_escape }}
                    </a>
                </blockquote>
                <blockquote style="margin: 0">
                    &copy; {% now "Y" %} {{ platform_name }}. {% trans "All rights reserved" as tmsg %}{{ tmsg | force_escape }} <br/>
                    {{ mailing_address }}
                </blockquote>
            </td>
        </tr>
    </tbody>
</table>
